<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/1/17
 * Time: 11:59
 */

namespace addons\seller\controller;


class Index extends Common
{
    /**
     * @return mixed
     */
    function index()
    {
        $this->check_login();
        return $this->fetch();
    }

    /**
     * 菜单
     */
    public function menu()
    {
        $menu_path = sprintf("%s/menu.json", Common::$base_config["SELLER_PATH"]);
        $menu_ = file_get_contents($menu_path);
        return json(
            json_decode($menu_)
        );
    }

}